<template>
  <div>
    <input type="text" v-model="value" />
  </div>
</template>

<script>
export default {
  data() {
    return {
      value: "",
    };
  },
  watch: {
    value(newVal) {
      if (newVal ==='hello world') {
        alert("hello world");
      }
    },
  },
  methods: {},
};
</script>

<style>
</style>
